package com.lock.immersive.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.lock.immersive.pojo.enums.TuanProcess;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName coupon
 */
@TableName(value ="coupon")
@Data
public class Coupon implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer couponId;

    /**
     * 满300减20
     */
    private String couponName;

    /**
     * 20
     */
    private Double couponPrice;

    /**
     * 300
     */
    private Double needPrice;

    /**
     * 一号产品
     */
    private Integer productId;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String  updateTime;

    /**
     * 
     */
    private Integer isOnline = 0;

    /**
     * 为空则不限期间，有的话则判断是否过期
     */
    private Integer tuanId;

    /**
     * 为空不限时间，有则判断时期
     */
    private String tuanProcess;

    private TuanProcess triggerTuanProcess;

    @TableLogic
    private Integer isDelete = 0;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}